function columns() {
  return [
    {
      field: 'predictAccountDate',
      width: 150,
      header: {
        filter: {
          title: '全款到账日期', 
          key: 'predictAccountDate',
          placeholder: '请选择',
          date: {
            type: 'daterange'
          },
        }
      },
    },
    {
      field: 'accumulateMoney',
      title: '累计回款金额(元)',
      width: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'totalAdjustAmount',
      title: '总价调整值(元)',
      width: 130,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'premiumTotalSale',
      title: '可结算溢价总销(元)',
      width: 160,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'premiumPer',
      title: '溢价费率(%)',
      width: 120,
      cell: {
        value: (row) => row.premiumPer ? `${Number(row.premiumPer)}` : '',
        text: {}
      }
    },
    {
      field: 'shouldSettlementPremium',
      title: '应结溢价(元)',
      width: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'depositPer',
      title: '保证金比例(%)',
      width: 130,
      cell: {
        value: (row) => row.depositPer ? `${Number(row.depositPer)}` : '',
        text: {}
      }
    },
    {
      field: 'depositAmount',
      title: '保证金(元)',
      width: 130,
      cell: {
        text: {
          type: 'number'
        }
      }
    }
  ]
}

export default {
  columns
}
